import React,{Component,PropTypes} from 'React';
import TestList from '../components/Test/TestList';
import {connect} from 'dva';

function Test({ location, dispatch, test }){
	const {
    loading, list, total, current,
    currentItem, modalVisible, modalType,pageSize
    } = test;
	const TestListProps = {total:total,current:current,loading:loading,dataSource:list,pageSize:pageSize};
	return(
      <div>
       <TestList {...TestListProps} />
      </div>
	);
}
//
Test.PropTypes = {
	test:PropTypes.object,
};
//
function mapStateToProps({test}){
	return {test};
}
//
export default connect(mapStateToProps) (Test);